import java.util.Scanner;

public class BMI {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.print("请输入你的身高(m):");
        double sg =sc.nextDouble();
        System.out.print("请输入你的体重(kg):");
        double tz = sc.nextDouble();
        double bmi =tz/(sg*sg);
        System.out.printf("身高=%.2fm. 体重=%.2fkg. BMI值是%.2f",sg,tz,bmi);
        sc.close();
    }
}
